package com.xm.po;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
/**
* @Description: 用户积分实体类
* @Author: Mr.Wang
* @Date: 2020/8/6
*/
public class UserScore{
	//属性
	private Integer scoreId;
	//用户id
	private Integer userId;
	//积分数
	private Integer score;
	//来源	1：订单 2:评价 3：订单取消返还 4：拒收返还
	private Integer dataSrc;
	//来源记录ID
	private Integer dataId;
	//描述
	private String dataRemarks;
	//积分标识	1:收入 2：支出
	private Integer scoreType;
	//创建时间
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	//构造器
	public UserScore(){}
	public UserScore(Integer userId){
		this.userId = userId;
	}
	public UserScore(Integer scoreId,Integer userId,Integer score,Integer dataSrc,Integer dataId,String dataRemarks,Integer scoreType,Date createTime){
		this.scoreId=scoreId;
		this.userId=userId;
		this.score=score;
		this.dataSrc=dataSrc;
		this.dataId=dataId;
		this.dataRemarks=dataRemarks;
		this.scoreType=scoreType;
		this.createTime=createTime;
}
	//getter setter方法
	public void setScoreId(Integer scoreId){
		this.scoreId=scoreId;
	}
	public Integer getScoreId(){
		return scoreId;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}
	public Integer getUserId(){
		return userId;
	}
	public void setScore(Integer score){
		this.score=score;
	}
	public Integer getScore(){
		return score;
	}
	public void setDataSrc(Integer dataSrc){
		this.dataSrc=dataSrc;
	}
	public Integer getDataSrc(){
		return dataSrc;
	}
	public void setDataId(Integer dataId){
		this.dataId=dataId;
	}
	public Integer getDataId(){
		return dataId;
	}
	public void setDataRemarks(String dataRemarks){
		this.dataRemarks=dataRemarks;
	}
	public String getDataRemarks(){
		return dataRemarks;
	}
	public void setScoreType(Integer scoreType){
		this.scoreType=scoreType;
	}
	public Integer getScoreType(){
		return scoreType;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}
	public Date getCreateTime(){
		return createTime;
	}
	public String toString(){
		return "Userscore [scoreId=" + scoreId + ", userId=" + userId + ", score=" + score + ", dataSrc=" + dataSrc + ", dataId=" + dataId + ", dataRemarks=" + dataRemarks + ", scoreType=" + scoreType + ", createTime=" + createTime + "]";
	}
}

